<template>
  <div class="y-image" :style="{width: width}">
    <el-tooltip class="item" effect="dark" content="点击查看大图" placement="top-start">
      <el-image :src="value" :preview-src-list="[value]"></el-image>
    </el-tooltip>
  </div>
</template>

<script>
export default {
  name: 'y-image',
  props: {
    value: null,
    width: {
      type: String,
      default: '50%'
    }
  }
}
</script>
